Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODStorageUnit


Exists

The Exists method returns a Boolean value that indicates whether the specified focus context exists in this storage unit.

ODBoolean Exists (in ODPropertyName propertyName, 
                  in ODValueType valueType, 
                  in ODValueIndex valueIndex);
propertyName
The name of the property in the focus context, or kODNULL for the currently focused property.
valueType
The value type of the value in the focus context, or kODNULL to ignore this parameter.
valueIndex
The value index of the value in the focus context, or 0 to ignore this parameter.
return value
kODTrue if the specified focus context exists in this storage unit, otherwise kODFalse.
DISCUSSION
You can call this method to see whether you can focus this storage unit on the specified focus context; however, this method does not change the current focus context. The parameters specify the focus context to be checked.

If this method returns true, it is safe to call the Focus method with the specified focus context.

EXCEPTIONS
kODErrIllegalPropertyName
The specified property name is improperly formed or illegal.
kODErrInvalidValueType
The specified value type is improperly formed or illegal.
kODErrZeroRefCount
This storage unit has a reference count of 0.
SEE ALSO
The ODPropertyName type (page 904).
The ODValueIndex type (page 904).
The ODValueType type (page 904).
The ODStorageUnit::ExistsWithCursor method (page 682).
The ODStorageUnit::Focus method (page 684).
Listing 2-41 on page 100 in OpenDoc Cookbook.
Listing 2-44 on page 105 in OpenDoc Cookbook.
Listing 2-45 on page 106 in OpenDoc Cookbook.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help